package com.production.CoursePlatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Data
@TableName("discussion")
public class Discussion {
    // @TableId(type = IdType.INPUT)
    // @Getter
    // @Setter
    @TableField("dId")
    private int dId;
    @TableField("sId")
    // @Getter
    // @Setter
    private int sId;
    @TableField("ctId")
    // @Getter
    // @Setter
    private int ctId;
    @TableField("dTag")
    // @Getter
    // @Setter
    private String dTag;
    @TableField("dTitle")
    // @Getter
    // @Setter
    private String dTitle;
    @TableField("dContent")
    // @Getter
    // @Setter
    private String dContent;
    // @Getter
    @TableField("dTime")
    private LocalDateTime dTime;

    @TableField("dLikes")
    // @Getter
    // @Setter
    private int dLikes;
    @TableField("dComments")
    // @Getter
    // @Setter
    private int dComments;
    @TableField("dFavorites")
    // @Getter
    // @Setter
    private int dFavorites;

    public int getdId() {
        return dId;
    }

    public int getsId() {
        return sId;
    }

    public int getCtId() {
        return ctId;
    }

    public String getdTag() {
        return dTag;
    }

    public String getdTitle() {
        return dTitle;
    }

    public String getdContent() {
        return dContent;
    }

    public int getdLikes() {
        return dLikes;
    }

    public int getdComments() {
        return dComments;
    }

    public int getdFavorites() {
        return dFavorites;
    }

    public void setdId(int dId) {
        this.dId = dId;
    }

    public void setsId(int sId) {
        this.sId = sId;
    }

    public void setCtId(int ctId) {
        this.ctId = ctId;
    }

    public void setdTag(String dTag) {
        this.dTag = dTag;
    }

    public void setdTitle(String dTitle) {
        this.dTitle = dTitle;
    }

    public void setdContent(String dContent) {
        this.dContent = dContent;
    }

    public void setdLikes(int dLikes) {
        this.dLikes = dLikes;
    }

    public void setdComments(int dComments) {
        this.dComments = dComments;
    }

    public void setdFavorites(int dFavorites) {
        this.dFavorites = dFavorites;
    }

    public Discussion() {
    }

    public void setdTime(LocalDateTime dTime) {
        this.dTime = dTime;
    }

    public LocalDateTime getdTime() {
        return dTime;
    }
}
